<script setup>
import { taskConfig } from '../../config/taskConfig'

const runProcess = (process) => {
  window.api.runProcess(process)
}
</script>

<template>
  <div class="step">
    <div class="topic">
      <div class="title">AI审批工作流</div>
      <a class="button all-button">全部启动</a>
    </div>
    <ul>
      <li v-for="task in taskConfig" :key="task.id">
        <p class="step-title">{{ task.taskname }}</p>
        <a class="button step-button" @click="runProcess(task.taskid)">启动</a>
      </li>
    </ul>
  </div>
</template>
